import 'package:json_annotation/json_annotation.dart';

part 'addressInfo.g.dart';

@JsonSerializable()
class AddressInfo {
  AddressInfo(
    this.currentAddress,
    this.currentCity,
    this.currentCommune,
    this.currentProvince,
    this.validationInfo,
  );

  String currentAddress;
  String currentCity;
  String currentCommune;
  String currentProvince;
  String validationInfo;

  factory AddressInfo.fromJson(Map<String, dynamic> json) => _$AddressInfoFromJson(json);
  Map<String, dynamic> toJson() => _$AddressInfoToJson(this);
  // 命名构造函数
  AddressInfo.empty();
}
